/*
 * ValidadorInteger.java
 *
 * Created on October 25, 2007, 3:25 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package web.util.validadores;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;

/**
 *
 * @author kabad
 */
public class ValidadorInteger implements Validator  {

    private int longuitud;
    
    /** Creates a new instance of ValidadorInteger */
    public ValidadorInteger(int longuitud) {
        this.longuitud=longuitud;
    }

    public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException {
        System.out.println("ValidadorInteger: "+value.getClass());
    }
    
}
